package com.py.sale.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * ${subTable.functionName}对象 od_sale_details
 * 
 * @author 童佳
 * @date 2024-12-03
 */
public class OdSaleDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售明细主键 */
    private Long saleDetailsId;

    /** 销售单号 */
    @Excel(name = "销售单号")
    private String saleDetailsCode;

    /** 货品名称 */
    @Excel(name = "货品名称")
    private String productName;

    /** 货品编号 */
    @Excel(name = "货品编号")
    private String productCode;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String productModel;

    /** 单位 */
    @Excel(name = "单位")
    private Long unit;

    /** 货品类型 */
    @Excel(name = "货品类型")
    private String productType;

    /** 当前库存 */
    @Excel(name = "当前库存")
    private Long inventory;

    /** 货品数量 */
    @Excel(name = "货品数量")
    private Long productNum;

    /** 已出库数量 */
    @Excel(name = "已出库数量")
    private Long alreadyOutNum;

    private String warehouseCode;

    private String locationCode;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long rejectedNum;

    /** 销售单价 */
    @Excel(name = "销售单价")
    private BigDecimal price;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private String isDel;


    public String getWarehouseCode() {
        return warehouseCode;
    }

    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }

    public String getLocationCode() {
        return locationCode;
    }

    public void setLocationCode(String locationCode) {
        this.locationCode = locationCode;
    }

    public void setSaleDetailsId(Long saleDetailsId)
    {
        this.saleDetailsId = saleDetailsId;
    }

    public Long getSaleDetailsId() 
    {
        return saleDetailsId;
    }
    public void setSaleDetailsCode(String saleDetailsCode) 
    {
        this.saleDetailsCode = saleDetailsCode;
    }

    public String getSaleDetailsCode() 
    {
        return saleDetailsCode;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setProductModel(String productModel) 
    {
        this.productModel = productModel;
    }

    public String getProductModel() 
    {
        return productModel;
    }
    public void setUnit(Long unit) 
    {
        this.unit = unit;
    }

    public Long getUnit() 
    {
        return unit;
    }
    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }
    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }

    public Long getInventory() 
    {
        return inventory;
    }
    public void setProductNum(Long productNum) 
    {
        this.productNum = productNum;
    }

    public Long getProductNum() 
    {
        return productNum;
    }
    public void setAlreadyOutNum(Long alreadyOutNum) 
    {
        this.alreadyOutNum = alreadyOutNum;
    }

    public Long getAlreadyOutNum() 
    {
        return alreadyOutNum;
    }
    public void setRejectedNum(Long rejectedNum) 
    {
        this.rejectedNum = rejectedNum;
    }

    public Long getRejectedNum() 
    {
        return rejectedNum;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return "OdSaleDetails{" +
                "saleDetailsId=" + saleDetailsId +
                ", saleDetailsCode='" + saleDetailsCode + '\'' +
                ", productName='" + productName + '\'' +
                ", productCode='" + productCode + '\'' +
                ", productModel='" + productModel + '\'' +
                ", unit=" + unit +
                ", productType='" + productType + '\'' +
                ", inventory=" + inventory +
                ", productNum=" + productNum +
                ", alreadyOutNum=" + alreadyOutNum +
                ", warehouseCode='" + warehouseCode + '\'' +
                ", locationCode='" + locationCode + '\'' +
                ", rejectedNum=" + rejectedNum +
                ", price=" + price +
                ", isDel='" + isDel + '\'' +
                '}';
    }
}
